<%@ page language="java" 
import="java.util.*,com.gzl.test.struts.testOGNLaction.User"
contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<%
  		User u1 = new User("张三","123456");
  		User u3 = new User("王五","123456");
  		User u5 = new User("高淇","654321");
  		User u6 = new User("马士兵","654321");
  		List list = new ArrayList();
  		list.add(u1);
  		list.add(u3);
  		list.add(u5);
  		list.add(u6);
  		request.setAttribute("s",list);
  	 %>
  	 <s:set var="s1" value="#request.s.{?#this.pwd=='654321'}" scope="request" ></s:set>
  	 <s:iterator value="#request.s1" var="temp" >
		 <p><s:property value="#temp.uname" /></p>
  	 </s:iterator>


</body>
</html>